from payment.gateways import HTTPGateway

class AuthorizeNetAim(HTTPGateway):
	"""An object used for interacting with authorize.net's AIM
	payment interface. This is the preferred payment method."""
	data_map = {
		'id': 'x_trans_id',
		'first_name': 'x_first_name',
		'last_name': None,
		'phone_number': None,
		'email_address': None, 
		'website': None,
		'ip_address': None,
		'method': None,
		'card_number': 'x_card_number',
		'card_code': 'x_card_code',
		'payment__amount': 'x_amount',
		'dup_time': 'x_duplicate_window',
		'test': 'x_test_request',
		'order_id': 'x_invoice_num',
		'description': 'x_description',
		'items': 'x_line_itemi',
		# Expiration info is transformed.
	}

	def __init__(self):
		print 'Initialized'

	def process(self):
		print 'processing'

